package com.zjkj.mp.vo.notice;
/**
 * 系统公告
 * @author 王旭东
 *
 */
public class Notice {
	private int id;
	
	/** 公告标题 */
	private String title;
	/** 公告内容*/
	private String content;
	/** 用户组*/
	private int roleID;
	/** 是否显示*/
	private boolean visible;
	
	/** 创建时间*/
	private String createDate;
	
	
	/** 公告标题 */	
	public String getTitle() {
		return title;
	}
	/** 公告标题 */
	public void setTitle(String title) {
		this.title = title;
	}
	
	/** 公告内容*/
	public String getContent() {
		return content;
	}
	/** 公告内容*/
	public void setContent(String content) {
		this.content = content;
	}
	
	/** 用户组*/
	public int getRoleID() {
		return roleID;
	}
	/** 用户组*/
	public void setRoleID(int roleID) {
		this.roleID = roleID;
	}
	
	/** 是否显示*/
	public boolean isVisible() {
		return visible;
	}
	/** 是否显示*/
	public void setVisible(boolean visible) {
		this.visible = visible;
	}
	 
	 
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	 
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Notice other = (Notice) obj;
		if (id != other.id)
			return false;
		return true;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	@Override
	public String toString() {
		return "Notice [id=" + id + "\ntitle=" + title + "\ncontent=" + content
				+ "\nroleID=" + roleID + "\nvisible=" + visible
				+ "\ncreateDate=" + createDate + "]";
	} 
}
